#pragma once

#include "Point.h"
#include "input.h"
#include <math.h>

class FiniteElement
{
public:
	FiniteElement(void);
	FiniteElement(int _index, Point leftPoint, Point rightPoint);
	~FiniteElement(void);
	Point * EndPoint;
	double * B;
	double * F;
	int GetFEIndex();
	double GetLength();
	Point GetMidPoint();
	void operator = (FiniteElement other);
	double funB0(double x);
	double funBii(double x);
	double funB1(double x);
	double funB2(double x);
	double funF0(double x);
	double funF1(double x);
private: 
	Point midPoint;
	int index;
	double length;
};